﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

namespace Ebusiness_Domain.DomainEvent
{
    /// <summary>
    /// 商品事件处理器
    /// </summary>
    public class ProductEventHandle
    {
        public void Hnadle(Event @event)
        {
            if (@event is AddProductEvent)
            {
                Console.WriteLine("处理添加商品事件");
            }
            if (@event is UpdateProductEvent)
            {
                Console.WriteLine("处理更新商品事件");
            }
            if (@event is DelegatingHandler)
            {
                Console.WriteLine("处理删除商品事件");
            }
        }
    }
}
